package com.jiyun.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jiyun.pojo.NCustomer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface NCustomerMapper extends BaseMapper<NCustomer>{
    @Select("select * from n_customer")
    List<NCustomer> findAll();

    @Select("select * from n_customer where id=#{id}")
    NCustomer findOne(Integer id);

    @Select("select * from n_customer where phone=#{phone}")
    NCustomer findPhone(String phone);
}
